#pragma once
#include "Xps/Util/XComsdef.h"
#include "Xps/Object/IObject.h"

namespace Xps
{
    class IObjectFactory abstract
    {
    public:
        virtual ~IObjectFactory(void){};
        virtual const IObject::Ptr FromBytes(const byte *_Src, const long &_Size) const = 0;
        virtual long ToBytes( const IObject::Ptr _Object, byte *_Dst, const long &_MaxSize ) const = 0;
    };
};